// 公用接口api
import { fetch, oss } from '@/utils/fetch.js';

// 获取banner列表
export function bannerList(params) {
  return fetch({
    url: '/questionlib/nice/banner/list',
    method: 'POST',
    data: params,
  });
}
// 获取banner位置
export function showPoint(params) {
  return fetch({
    url: '/questionlib/nice/banner/showPoint',
    method: 'POST',
    data: params,
  });
}

// 新增banner
export function insertOrUpdate(params) {
  return fetch({
    url: '/usercenter/core/tableRecord/insertOrUpdate',
    method: 'POST',
    data: params,
  });
}
